/**
 * Project		: anveshitha
 * Filename		: anveshitha.common.CommonMethodTests.java
 * Author		: varun
 * Date			: Jun 13, 2008, 8:12:15 PM
 * Description	: This file has tests for any commonly used methods		
 * License		: GNU LESSER GENERAL PUBLIC LICENSE (http://www.gnu.org/licenses/lgpl-3.0.txt)
 */
package anveshitha.common;

import java.io.File;
import java.util.Arrays;
import java.util.Collection;

import junit.framework.TestCase;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.FileFilterUtils;
import org.apache.commons.io.filefilter.TrueFileFilter;

/**
 * @author varun
 */
public class CommonMethodTests extends TestCase {
	
	/* (non-Javadoc)
	 * @see junit.framework.TestCase#setUp()
	 */
	@Override
	protected void setUp() throws Exception {
		super.setUp();
	}
	
	@SuppressWarnings("unchecked")
	public void testFileUtils() throws Exception
	{
		//test
		Collection<File> alFileList = FileUtils.listFiles(new File("/home/varun/workspace/anveshitha/src"),
				FileFilterUtils.suffixFileFilter("java"), TrueFileFilter.INSTANCE);
		
		//verify
		assertNotNull(alFileList);
		System.out.println(Arrays.toString((alFileList.toArray())));

	}

}
